package com.bwie.vo;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * description:
 *
 * @Author zhaohaoyang
 * @Create 2025/5/21 13:49
 * @Version 1.0
 */
@Data
public class LoginVo implements Serializable {

    @NotBlank(message = "账号不能为空")
    @Size(min = 8,message = "账号长度不能小于8位")
    private String userName;

    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])[a-z0-9]{6,}$",message = "密码长度不能小于六位，且必须包含字母和数字")
    private String userPass;
}
